/*
 * tarm_math.c
 *
 *  Created on: 2020年1月15日
 *      Author: tinnu
 */


#include "tarm_math.h"

#include "fsl_powerquad.h"

void tarm_initMathAcce(void)
{
    PQ_Init(POWERQUAD);
}

inline float tarm_inv(float input)
{
	float output = 0;
	PQ_InvF32(&input, &output);
	return output;
}

inline float tarm_sqrt(float input)
{
	float output = 0;
	PQ_SqrtF32(&input, &output);
	return output;
}

inline float tarm_sin(float input)
{
	float output = 0;
	PQ_SinF32(&input, &output);
	return output;
}

inline float tarm_cos(float input)
{
	float output = 0;
	PQ_CosF32(&input, &output);
	return output;
}


inline float tarm_invsqrt(float input)
{
	float output = 0;
	PQ_InvSqrtF32(&input, &output);
	return output;
}
